package com.lfz.demo.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lfz.demo.dao.LogsMapper;
import com.lfz.demo.entity.Logs;
import com.lfz.demo.repository.LogsRepository;
import com.lfz.demo.service.LogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

/**
 * @author lfz
 * @date 2025/3/12 10:22
 */
@Service
public class LogsServiceImpl extends ServiceImpl<LogsMapper, Logs> implements LogsService {

    @Autowired
    private LogsRepository logsRepository;

    @Override
    public Page<Logs> findByPage(Specification<Logs> spec, Pageable pageable) {
        return logsRepository.findAll(spec, pageable);
    }
}
